/* 关键词管理现代化样式 */
.keyword-container {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid var(--border-light);
  position: relative;
}

.keyword-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--info-color), var(--info-hover));
}

.keyword-header {
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.05) 0%, rgba(64, 169, 255, 0.02) 100%);
  color: var(--text-primary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.keyword-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.3), transparent);
}

.keyword-header h3 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--info-color);
}

.keyword-header .account-badge {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.keyword-input-area {
  padding: 24px;
  background: linear-gradient(135deg, rgba(64, 169, 255, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.keyword-input-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--info-color), transparent);
}

.keyword-input-group {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto auto;
  gap: 16px;
  align-items: end;
}

.input-field {
  position: relative;
}

.input-field label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--bg-gray);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 1;
}

.input-field input, .input-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  font-size: 14px;
  transition: var(--transition-base);
  background: var(--bg-white);
  color: var(--text-primary);
}

.input-field input:focus, .input-field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.add-btn {
  background: linear-gradient(135deg, var(--success-color), var(--success-hover));
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-base);
  padding: 12px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.add-btn:hover {
  background: linear-gradient(135deg, var(--success-hover), var(--success-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.add-btn:active {
  transform: translateY(0);
}

/* ================================
   【自动回复菜单】相关样式
   ================================ */
.keywords-list {
  padding: 20px 24px 24px;
  max-height: 500px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
}

/* ================================
   【已配置商品列表】相关样式
   ================================ */
.item-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.5) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: var(--transition-base);
  overflow: hidden;
  position: relative;
}

.item-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, var(--success-color), var(--success-hover));
  opacity: 0;
  transition: var(--transition-base);
}

.item-card:hover {
  border-color: var(--success-color);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.item-card:hover::before {
  opacity: 1;
}

.item-card-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-actions .btn {
  border-radius: var(--radius-base);
  transition: var(--transition-base);
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-actions .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-color: var(--primary-color);
}

.item-actions .btn-outline-info:hover {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  border-color: var(--info-color);
}

.item-actions .btn-outline-danger:hover {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-hover));
  border-color: var(--danger-color);
}

.item-id {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-size: 14px;
}

.item-keywords {
  display: flex;
  align-items: center;
}

.item-card-body {
  padding: 16px 20px;
}

.item-title {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 8px;
}

.item-description {
  margin-top: 8px;
  padding-left: 24px;
}

.keyword-item {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.5) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: var(--transition-base);
  overflow: hidden;
  position: relative;
}

.keyword-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  opacity: 0;
  transition: var(--transition-base);
}

.keyword-item:hover {
  border-color: var(--info-color);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.keyword-item:hover::before {
  opacity: 1;
}

.keyword-item-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keyword-tag {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.keyword-actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.edit-btn {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--text-secondary);
}

.edit-btn:hover {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.edit-btn-disabled {
  background: var(--gray-50) !important;
  color: var(--text-quaternary) !important;
  cursor: not-allowed !important;
}

.edit-btn-disabled:hover {
  background: var(--gray-50) !important;
  color: var(--text-quaternary) !important;
}

.delete-btn {
  background: linear-gradient(135deg, var(--danger-bg), rgba(255, 77, 79, 0.1));
  color: var(--danger-color);
}

.delete-btn:hover {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-hover));
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.keyword-content {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

.reply-text {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
  color: var(--text-tertiary);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 24px;
  font-size: 14px;
}

.quick-add-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-base);
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 14px;
}

.quick-add-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* 账号选择器现代化 */
.account-selector {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  position: relative;
}

.account-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.selector-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.selector-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.selector-title {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
}

.selector-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.account-select-wrapper {
  position: relative;
}

.account-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  font-size: 14px;
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-primary);
}

.account-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

/* ================================
   【自动回复菜单】图片关键词样式
   ================================ */
.btn-image {
  background: linear-gradient(135deg, var(--warning-color), var(--warning-hover)) !important;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3) !important;
}

.btn-image:hover {
  background: linear-gradient(135deg, var(--warning-hover), var(--warning-light)) !important;
  box-shadow: 0 4px 12px rgba(250, 173, 20, 0.4) !important;
}

.keyword-input-group {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}

.keyword-input-group .add-btn {
  white-space: nowrap;
  min-width: auto;
}

.image-preview {
  margin-top: 12px;
}

.preview-container {
  padding: 12px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-base);
  text-align: center;
  background: var(--bg-gray);
}

.keyword-type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

.keyword-type-text {
  background: var(--primary-bg);
  color: var(--primary-color);
  border: 1px solid rgba(22, 119, 255, 0.2);
}

.keyword-type-image {
  background: var(--info-bg);
  color: var(--info-color);
  border: 1px solid rgba(24, 144, 255, 0.2);
}

/* 关键词列表中的图片预览 */
.keyword-image-preview {
  max-width: 60px;
  max-height: 60px;
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-base);
}

.keyword-image-preview:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .keyword-input-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .keyword-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .keyword-actions {
    align-self: flex-end;
  }

  .keyword-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .keyword-input-group .add-btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .search-input-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-btn, .clear-search-btn {
    margin-top: 0.5rem;
  }
}

/* 搜索区域样式 */
.keyword-search-area {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  position: relative;
}

.keyword-search-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-400), transparent);
}

.search-input-group {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
}

/* 搜索按钮特定颜色 */
.search-btn {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover)) !important;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3) !important;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--info-hover), var(--info-light)) !important;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4) !important;
}

/* 清除按钮特定颜色 */
.clear-search-btn {
  background: linear-gradient(135deg, var(--gray-500), var(--gray-600)) !important;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
}

.clear-search-btn:hover {
  background: linear-gradient(135deg, var(--gray-600), var(--gray-700)) !important;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4) !important;
}

.search-results-info {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-white);
  border-radius: var(--radius-base);
  border: 1px solid var(--border-light);
  font-size: 12px;
}

/* ================================
   商品ID列表模块样式
   ================================ */
.item-ids-container {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.item-ids-header {
  padding: 20px 24px;
  background: var(--warning-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-ids-header h4 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.item-ids-stats .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-white) !important;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.item-ids-content {
  padding: 24px;
}

.item-ids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.item-id-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition-base);
  cursor: pointer;
}

.item-id-card:hover {
  border-color: var(--warning-color);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.item-id-card.active {
  border-color: var(--warning-color);
  background: var(--warning-bg);
  box-shadow: var(--shadow-2);
}

.item-id-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.item-id-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-id-value {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 12px;
  font-weight: 500;
}

.item-id-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-id-count {
  background: var(--warning-bg);
  color: var(--warning-color);
  padding: 3px 6px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(250, 173, 20, 0.3);
}

.exclusive-reply-btn,
.copy-item-keywords-btn,
.delete-item-keywords-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  opacity: 0.7;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.exclusive-reply-btn {
  background: var(--info-bg);
  color: var(--info-color);
}

.copy-item-keywords-btn {
  background: var(--success-bg);
  color: var(--success-color);
}

.delete-item-keywords-btn {
  background: var(--danger-bg);
  color: var(--danger-color);
}

.exclusive-reply-btn:hover,
.copy-item-keywords-btn:hover,
.delete-item-keywords-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.item-id-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.item-id-keyword {
  background: var(--gray-200);
  color: var(--text-secondary);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 400;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-id-keyword.text-type {
  background: var(--primary-bg);
  color: var(--primary-color);
}

.item-id-keyword.image-type {
  background: var(--info-bg);
  color: var(--info-color);
}

.item-ids-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
}

.item-ids-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  color: var(--warning-color);
}

.item-ids-empty h5 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.item-ids-empty p {
  margin: 0;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .item-ids-grid {
    grid-template-columns: 1fr;
  }
  
  .item-ids-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .item-id-card {
    padding: 12px;
  }
}

/* ================================
   关键词库管理样式
   ================================ */

.library-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  overflow: hidden;
  background: var(--bg-white);
}

.library-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.library-card .card-body {
  padding: 20px;
}

.library-card h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

.library-card .badge {
  font-size: 12px;
  font-weight: 500;
}

.library-card .text-muted {
  font-size: 14px;
  color: var(--text-secondary);
}

.library-card .btn-group .btn {
  border-radius: var(--radius-base);
  transition: var(--transition-base);
}

.library-card .btn-group .btn:hover {
  transform: translateY(-1px);
}

/* 关键词库统计卡片 */
#keyword-library-section .card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: var(--transition-base);
}

#keyword-library-section .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

#keyword-library-section .card-body {
  padding: 20px;
}

#keyword-library-section .fs-1 {
  font-size: 40px !important;
}

#keyword-library-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 8px 0;
}

#keyword-library-section .text-muted {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 关键词库详情模态框 */
#libraryDetailModal .modal-xl {
  max-width: 1200px;
}

#libraryDetailModal .table {
  font-size: 0.875rem;
}

#libraryDetailModal .table th {
  background: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
}

#libraryDetailModal .table td {
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

#libraryDetailModal code {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

#libraryDetailModal .badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 应用设置区域 */
#libraryDetailModal .card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

#libraryDetailModal .card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

#libraryDetailModal .card-header h6 {
  margin: 0;
  color: #374151;
  font-weight: 600;
}

#libraryDetailModal .card-body {
  padding: 1.5rem;
}

#libraryDetailModal .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

#libraryDetailModal .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#libraryDetailModal .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

#libraryDetailModal .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#libraryDetailModal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 创建关键词库模态框 */
#createLibraryModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#createLibraryModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

#createLibraryModal .modal-title {
  font-weight: 600;
}

#createLibraryModal .form-control,
#createLibraryModal .form-control:focus {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

#createLibraryModal .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#createLibraryModal .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#createLibraryModal .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 普通用户应用模式样式 */
#libraryDetailModal .col-md-12 .card {
  max-width: 600px;
  margin: 0 auto;
}

#libraryDetailModal .col-md-12 .card-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
}

#libraryDetailModal .col-md-12 .card-header h6 {
  color: white;
  font-weight: 600;
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #libraryDetailModal .modal-xl {
    max-width: 95%;
  }
  
  #libraryDetailModal .row {
    flex-direction: column;
  }
  
  #libraryDetailModal .col-md-8,
  #libraryDetailModal .col-md-4 {
    width: 100%;
  }
  
  .library-card .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .library-card .btn-group .btn {
    width: 100%;
  }
}

/* ================================
   词库信息展示样式
   ================================ */

.item-libraries {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.item-libraries .badge {
  margin-right: 4px;
  font-size: 10px;
}

.item-id-libraries {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.item-id-libraries .badge {
  margin-right: 4px;
  font-size: 10px;
}
